#!/bin/bash
#clear
#set variables
export DISPLAY=:0 
XSERVER="X"
X :0 -br -dpms -s 0 &
sleep 4 
#disable screen blanking by DPMS
#setterm -blank 0 -powersave off
#launch player
java -jar /home/tux/client/client.jar http://www.digitalsignage.tk
#don't forget to quit all processes
#killall java $XSERVER >/dev/null 2>&1
clear 